#ifndef C_CROLE_H
#define C_CROLE_H

#include"CComponent.h"
/*********************************************************************************************************
Class name: CRole
Data member:
	int speed;
	int direction; the moving direction for the role, 1 for up, 2 for down, 3 for left, 4 for right
Member function:

Inherit class: CComponent
Derived class: void
***************************************************************************************************************/

class CRole : public CComponent
{
private:
	int speed = 6;
	int direction = 0;

public:
	
	CRole(LPCTSTR Name1, LPCTSTR Name2);
	CRole(int x, int y, LPCTSTR Name1, LPCTSTR Name2);
	CRole(int x, int y, LPCTSTR Name1, LPCTSTR Name2, int Speed, char Direction);
	virtual ~CRole();
	
	void setSpeed(int);
	void setDirection(int Direction);

	int getSpeed() const;
	int getDirection()const;
};

#endif